.style-grid {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid #000;
  font-size: 12px;
  grid-template-columns: 24px auto 24px;
  grid-template-rows: 24px auto 24px;
  justify-items: center;
  align-items: center;
  .style-title {
    > span {
      position: absolute;
      left: 10px;
      top: 5px;
      opacity: .5;
      line-height: 12px;
    }
  }

  &.style-position {
    &:not(.style-empty) {
      border: 1px dashed #aaa;
      >div:not(.style-grid) {
        width: 100%;
        height: 100%;
        background: #eee;
        display: flex;
        align-items: center;
        justify-content: center;
        input[readonly] {
          background: #eee;
        }
      }
    }
    &.style-empty {
      border: 1px solid transparent;
      >div:not(.style-grid) {
        opacity: 0;
      }
    }
  }

  &.style-margin {
    >div:not(.style-grid) {
      width: 100%;
      height: 100%;
      background: #ffdcb1;
      display: flex;
      align-items: center;
      justify-content: center;
      input[readonly] {
        background: #ffdcb1;
      }
    }
  }

  &.style-border {
    >div:not(.style-grid):not(.style-context) {
      width: 100%;
      height: 100%;
      background: #deffca;
      display: flex;
      align-items: center;
      justify-content: center;
      input[readonly] {
        background: #deffca;
      }
    }
  }

  &.style-padding {
    >div:not(.style-context):not(.style-context) {
      width: 100%;
      height: 100%;
      background: #b7e0ff;
      display: flex;
      align-items: center;
      justify-content: center;
      input[readonly] {
        background: #b7e0ff;
      }
    }
  }

  .style-context {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #95baff;
  }

  > div {
    &:not(.style-inner) {
      // border: 1px solid red;
    }
    &.style-inner {
      width: 100%;
      height: 100%;
    }

    > input {
      width: 100%;
      max-width: 50px;
      border: none;
      outline: none;
      text-align: center;
    }
  }
}
